package br.ufrj.dcc.smarthotel.listeners;

import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import br.ufrj.dcc.smarthotel.activities.InvitePeopleActivity;
import br.ufrj.dcc.smarthotel.entities.EventUser;

public class InvitePeopleItemClickListener implements OnItemClickListener {
	private InvitePeopleActivity activity;
	
	public InvitePeopleItemClickListener(InvitePeopleActivity invitePeopleActivity) {
		this.activity = invitePeopleActivity;
	}

	public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
		EventUser clickedEventUser = this.activity.getEventUserList().get(position);
		
		this.activity.inviteEventUser(clickedEventUser);
	}

}
